<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui" xmlns:sec="http://www.springframework.org/security/facelets/tags">

	<h:form>
		<p:megaMenu autoDisplay="false">
			<p:menuitem value="#{msg['ihm.libelle.accueil']}" icon="house" action="/pages/private/accueil.xhtml?faces-redirect=true" ajax="false"/>
			<p:submenu label="#{msg['ihm.libelle.module']}" icon="module" rendered="#{sec:isAuthenticated()}">

			</p:submenu>
			<p:submenu label="#{msg['ihm.libelle.administration']}" icon="wrench" rendered="#{sec:ifAnyGranted('ADMIN')}">
				<p:column>
					<p:submenu label="#{msg['ihm.libelle.utilisateurs']}" icon="user">
						<p:menuitem value="#{msg['ihm.libelle.gerer']}" icon="page_edit" action="/pages/private/administration/utilisateur/gerer.xhtml?faces-redirect=true" ajax="false" />
						<p:menuitem value="#{msg['ihm.libelle.comptes_en_attente']}" icon="sablier" action="/pages/private/administration/utilisateur/en-attente.xhtml?faces-redirect=true" ajax="false" />
					</p:submenu>
					<p:submenu label="#{msg['ihm.libelle.systeme']}" icon="computer">
						<p:menuitem value="#{msg['ihm.libelle.application']}" icon="page_edit" action="/pages/private/administration/systeme/application.xhtml?faces-redirect=true" ajax="false" />
						<p:menuitem value="#{msg['ihm.libelle.logs']}" icon="logs" action="/pages/private/administration/systeme/logs.xhtml?faces-redirect=true" ajax="false" />
					</p:submenu>
				</p:column>
			</p:submenu>
		</p:megaMenu>
	</h:form>

</ui:composition>